/**
 * 登陆相关
 * @author [donghui]
 */
const $http = require('../utils/http.js'), api = require('../config/api.js')

/**
 * 小程序登陆
 */
var _xcxLogin = function (params) {
  return $http.get(api.LOGIN_WEIXIN, params)
}

/**
 * 注册发送验证码
 */
var _mobileFastLanding = function (params) {
  return $http.get(api.SEND_MY_REGISTER_CODE, params)
}

/**
 * 注册绑定手机
 */
var _xcxBindMobile = function (params) {
  return $http.get(api.BIND_MOBILE, params)
}

module.exports = {
  xcxLogin: _xcxLogin,
  mobileFastLanding: _mobileFastLanding,
  xcxBindMobile: _xcxBindMobile
}